package com.cjq.goods.service.impl;

import com.cjq.common.domain.Tag;
import com.cjq.common.result.Result;
import com.cjq.goods.mapper.TagMapper;
import com.cjq.goods.service.TagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TagServiceImpl implements TagService {
    @Autowired
    private TagMapper tagMapper;

    @Override
    public Result<List<Tag>> tagList() {
        List<Tag> tagList = tagMapper.tagList();
        return Result.success(tagList);
    }
}
